﻿using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using DataAccessLayer;
using GlobalObjects;
using System.Collections.Generic;

namespace DataAccessLayerTests
{
    [TestClass]
    public class TestimonialEntityTests
    {
        [TestMethod]
        public void insertToTestimonial_DAL_valid()
        {
            //arrrange
            TestimonialEntity testiE = new TestimonialEntity();
            Testimonial testi = new Testimonial();
            testi.Fullname = "Pejman A";
            testi.Email = "pejiks@yahoo.com";
            testi.Subject = "Test testimonial";
            testi.Message = "Testing message for testimonial";
            testi.Time = DateTime.Parse("26/07/2013");
            //action
            testiE.insertToTestimonials_DAL(testi);
            //Assert check DB
        }
    }
}
